home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / ODF Release 3 / ODFDev / Draw / Sources / Dialog.fr < prev    next >
Encoding:
Text File  |  1996-12-16  |  3.1 KB  |  115 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //    File:                Dialog.fr
  3. //    Release Version:    $ ODF 3 $
  4. //
  5. //    Contains:            Resources defining the ODFDraw part's Round Corner Dialog
  6. //
  7. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  8. //========================================================================================
  9.  
  10. #ifndef FWRESFIL_K
  11. #include "FWResFil.k"
  12. #endif
  13.  
  14. #ifndef FWVIEWS_FR
  15. #include "FWViews.fr"
  16. #endif
  17.  
  18. #ifndef FWNOTDEF_H
  19. #include "FWNotDef.h"     
  20. #endif
  21.  
  22. #ifndef DEFINES_K
  23. #include "Defines.k"
  24. #endif
  25.  
  26. //----------------------------------------------------------------------------
  27. //    Strings for clock settings
  28. //----------------------------------------------------------------------------
  29. resource FW_kMULTISTRING (kRoundCornersStrings)
  30. {
  31.     kOffsetErrorString, "Offset must be between -23 and 23";
  32.     kRoundCornersTitleString, "Round Corners";
  33. }
  34.  
  35. //========================================================================================
  36. // resource RFormFrame(kRoundCornersDialog)
  37. //========================================================================================
  38. // See constants in "FWViews.k", macros & resource types in "FWViews.fr"
  39.  
  40. resource FW_RFrameLayout(kRoundCornersDialog)
  41. {
  42.     {FW_FIX(312),FW_FIX(96)},        // Layout Size - HV
  43.     
  44.     {                        // Start list of frame's subviews
  45.         FW_RButton
  46.         (
  47.             kDrawOKButtonID,            // view id
  48.             FW_BOUNDS(220, 12, 288, 40),
  49.             FW_kFixedBounds,            // binding
  50.             FW_kDefaultButtonMsg,        // "OK" message
  51.             0,                            // receiver = dialogFrame by default
  52.             0,                            // control value
  53.             FW_kDefaultPushButton,        // button kind (with outline)
  54.             FW_SYSTEM_FONT,
  55.             "OK"            
  56.         ), 
  57.         FW_RButton
  58.         (
  59.             kCancelButtonID,            // view id
  60.             FW_BOUNDS(224, 50, 284, 70),
  61.             FW_kFixedBounds,            // binding
  62.             FW_kCancelButtonMsg,        // "Cancel" message
  63.             0,                            // receiver = dialogFrame by default
  64.             0,                            // control value
  65.             FW_kPushButton,                // button kind (no outline)
  66.             FW_SYSTEM_FONT,
  67.             "Cancel"            
  68.         ),
  69.         FW_RButton
  70.         (
  71.             kRoundEndsID,                    // view id
  72.             FW_BOUNDS(24, 16, 136, 32),
  73.             FW_kFixedBounds,                // binding
  74.             kRoundEndsPressedMsg,            // control message
  75.             FW_kFrameReceiver,                // control receiver
  76.             0,                                // control value
  77.             FW_kRadioButton,                // button kind
  78.             FW_SYSTEM_FONT,
  79.             "Round Ends"            
  80.         ),
  81.         FW_RButton
  82.         (
  83.             kRadiusID,                        // view id
  84.             FW_BOUNDS(24, 40, 136, 56),
  85.             FW_kFixedBounds,                // binding
  86.             kRadiusPressedMsg,                // control message
  87.             FW_kFrameReceiver,                // control receiver
  88.             0,                                // control value
  89.             FW_kRadioButton,                // button kind
  90.             FW_SYSTEM_FONT,
  91.             "Radius"            
  92.         ),
  93.         FW_RStaticText
  94.         (
  95.             0,                                // view id
  96.             FW_BOUNDS(144, 66, 204, 82),    // LTRB
  97.             FW_kFixedBounds,                // binding
  98.             FW_SYSTEM_FONT,
  99.             FW_RGB_WHITE,
  100.             "Points"            
  101.         ),
  102.         FW_REditView                    // edit view to enter string
  103.         (
  104.             kPointsID,                    // view id
  105.             FW_BOUNDS(64, 64, 136, 84),
  106.             FW_kFixedBounds,            // binding
  107.             4,                            // max chars
  108.             9,                            // attributes
  109.             FW_SYSTEM_FONT, 
  110.             "0"                            // initial text
  111.         )
  112.     },                        // End list of frame's subviews
  113.     { }                        // no scroller
  114. };
  115.